package cn.com.czpb.client.model.usercenter;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Administrator on 2017/7/11.
 */

public class HistoryBean implements MultiItemEntity {
    public final static int NOPIC = 1;
    public final static int LEFTPIC = 2;
    public final static int THRPIC = 4;
    public final static int BIGPIC = 5;
    /**
     * rtype : 1
     * rvalue : 71
     * nid : 1
     * tid : 3
     * authorname : admin
     * wemedia : 0
     * title : 12306网站注册推手机双向验证 黄牛暂未破解
     * copyfrom : 现代快报
     * sort_order : 1447413891.00
     * status : 0
     * update_time : 2015-11-13 19:24:51
     * type : 2
     * sid : 0
     * comflag : 0
     * columnid : 0
     * subtitle :
     * imgs : ["http://101.200.174.98/yunzong_jhxt/../../files/app/thumb/s_1502274833.jpg"]
     * newsflag : http://101.200.174.98/zqzx/Public/Uploads/flag/hot.png
     * newsurl : http://101.200.174.98/yunzong_jhxt/yunzong/News/201511/13/1.html
     * comcount : 7
     */
    @SerializedName("praisecount")
    private String praisecount;
    private String rtype;
    private String rvalue;
    private String nid;
    private String tid;
    private String authorname;
    private String wemedia;
    private String title;
    private String copyfrom;
    private String sort_order;
    private String status;
    private String update_time;
    private String type;
    private String sid;
    private String comflag;
    private String columnid;
    private String subtitle;
    private String newsflag;
    private String newsurl;
    private String comcount;
    private List<String> imgs;

    public String getPraisecount() {
        return praisecount;
    }

    public void setPraisecount(String praisecount) {
        this.praisecount = praisecount;
    }

    public void setRtype(String rtype) {
        this.rtype = rtype;
    }

    public void setRvalue(String rvalue) {
        this.rvalue = rvalue;
    }

    public void setNid(String nid) {
        this.nid = nid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public void setAuthorname(String authorname) {
        this.authorname = authorname;
    }

    public void setWemedia(String wemedia) {
        this.wemedia = wemedia;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setCopyfrom(String copyfrom) {
        this.copyfrom = copyfrom;
    }

    public void setSort_order(String sort_order) {
        this.sort_order = sort_order;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public void setComflag(String comflag) {
        this.comflag = comflag;
    }

    public void setColumnid(String columnid) {
        this.columnid = columnid;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public void setNewsflag(String newsflag) {
        this.newsflag = newsflag;
    }

    public void setNewsurl(String newsurl) {
        this.newsurl = newsurl;
    }

    public void setComcount(String comcount) {
        this.comcount = comcount;
    }

    public void setImgs(List<String> imgs) {
        this.imgs = imgs;
    }

    public String getRtype() {
        return rtype;
    }

    public String getRvalue() {
        return rvalue;
    }

    public String getNid() {
        return nid;
    }

    public String getTid() {
        return tid;
    }

    public String getAuthorname() {
        return authorname;
    }

    public String getWemedia() {
        return wemedia;
    }

    public String getTitle() {
        return title;
    }

    public String getCopyfrom() {
        return copyfrom;
    }

    public String getSort_order() {
        return sort_order;
    }

    public String getStatus() {
        return status;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public String getType() {
        return type;
    }

    public String getSid() {
        return sid;
    }

    public String getComflag() {
        return comflag;
    }

    public String getColumnid() {
        return columnid;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public String getNewsflag() {
        return newsflag;
    }

    public String getNewsurl() {
        return newsurl;
    }

    public String getComcount() {
        return comcount;
    }

    public List<String> getImgs() {
        return imgs;
    }

    @Override
    public int getItemType() {
        if (getType().equals("1")) {
            return NOPIC;
        } else if (getType().equals("5")) {
            return BIGPIC;
        } else if (getType().equals("4")) {
            return THRPIC;
        } else {
            return LEFTPIC;
        }
    }

}
